package cn.growthgate.fgo.entity.enums;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IEnum;

import cn.growthgate.fgo.common.Constants;

public enum Role implements IEnum {

	ADMIN(1, Constants.ROLE_ADMIN, "管理员"),
	USER(2, Constants.ROLE_USER, "普通用户");

	private int value;
	private String name;
	private String cName;

	private Role(final int value, final String name, final String cName) {
		this.value = value;
		this.name = name;
		this.cName = cName;
	}

	@Override
	public Serializable getValue() {
		return value;
	}

	public final String getName() {
		return name;
	}

	public String getCName() {
		return cName;
	}

	@Override
	public String toString() {
		return getCName();
	}
	
}
